package com.dsteiner.widgets.client.rpc;

import java.util.Collection;
import java.util.List;
import java.util.Set;

import com.dsteiner.widgets.client.SuggestBoxWidget.SuggestionRequest;
import com.dsteiner.widgets.client.SuggestBoxWidget.SuggestionResult;
import com.dsteiner.widgets.client.domain.Distinct;
import com.dsteiner.widgets.client.domain.ModelObject;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("distinct")
public interface DistinctService extends RemoteService {
	public static class Util {
		private static DistinctServiceAsync instance;
		public static DistinctServiceAsync getInstance(){
			if (instance == null) {
				instance = (DistinctServiceAsync) GWT.create(DistinctService.class);
			}
			return instance;
		}
	}

	List<Distinct> getDistincts(DistinctRequest distinctRequest);
	
	Collection<Distinct> createDistincts(String className, String property);
}
